package com.x.crm.model;


import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@MappingTable(tableName = "CRM_MORTGAGE")
public class Mortgage extends BaseObject  {
    @DocDesc("按揭公司ID")
    @MappingColumn(columnName = "MORTGAGE_ID", columnPk = true, columnLength = 32)
    private String mortgageId;
    @DocDesc("按揭公司名称")
    @MappingColumn(columnName = "MORTGAGE_NAME")
    private String mortgageName;
    @DocDesc("市场ID")
    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;
    @DocDesc("车商ID")
    @MappingColumn(columnName = "SHOP_ID")
    private String shopId;
    @DocDesc("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @MappingColumn(columnName = "MORTGAGE_CREATE_TIME")
    private Date mortgageCreateTime;
    @DocDesc("状态")
    @MappingColumn(columnName = "MORTGAGE_STATE")
    private Integer mortgageState;

    public Mortgage(){}
    public Mortgage(String marketId,Integer state){
        this.marketId = marketId;
        this.mortgageState = state;
    }

    public String getMortgageId() {
        return mortgageId;
    }

    public void setMortgageId(String mortgageId) {
        this.mortgageId = mortgageId;
    }

    public String getMortgageName() {
        return mortgageName;
    }

    public void setMortgageName(String mortgageName) {
        this.mortgageName = mortgageName;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Date getMortgageCreateTime() {
        return mortgageCreateTime;
    }

    public void setMortgageCreateTime(Date mortgageCreateTime) {
        this.mortgageCreateTime = mortgageCreateTime;
    }

    public Integer getMortgageState() {
        return mortgageState;
    }

    public void setMortgageState(Integer mortgageState) {
        this.mortgageState = mortgageState;
    }
}
